from rest_framework import serializers

from activity.models import Gathering
from users.models import User


class GatheringSerializer(serializers.ModelSerializer):
    '''活动序列化器类'''
    # users = serializers.SerializerMethodField(User, label='用户', read_only=True)
    class Meta:
        model = Gathering
        fields = '__all__'